const init = [
  {
    id: '',
    title: '',
    finished: [],
    all: [
      {
        id: '',
        assignments: [],
        title: '',
        title_zh_TW: '',
        orderNumber: '',
        status: '',
        type: ''
      }],
    unfinish: [{
      id: '',
      title: '',
      assignments: [
        {
          id: '',
          status: ''
        }
      ]
    }],
    excellent: []
  }
]
export default (state = init, action) => {
  switch (action.type) {
    case 'REFRESH_TOPICS_TASKS':
      return action.topicsTasks
    default:
      return state
  }
}
